SetUserAddressX

SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > SetUserAddressX

## SetUserAddress1, SetUserAddress2, SetUserAddress3

The SetUserAddress1, SetUserAddress2 and SetUserAddress3 functions set the User Address field (1, 2 or 3) in the currently loaded license.

###### Syntax

HRESULT SetUserAddress1 (

BSTR UserAddress1

);

HRESULT SetUserAddress2 (

BSTR UserAddress2

);

HRESULT SetUserAddress3 (

BSTR UserAddress3

);

###### Parameters

UserAddressX

[IN] Wide character string (of any length) which must be set to the (corresponding) User Address field you wish to store in the currently loaded license.

###### Remarks

The SetUserAddress1, SetUserAddress2 and SetUserAddress3 functions set the User Address field (1, 2 or 3) in the currently loaded license. Once executed, any previously stored value in the (corresponding) User Address field is overwritten.

These fields are dynamically allocated strings and have no declared maximum length. The theoretical maximum length of these string values is 2GB (two gigabytes). In practice this means that the maximum length of these strings is limited only by the amount of memory available to your application.

###### Return Value

As with all COM function calls they return an HRESULT. HRESULT is a data type that is a 32-bit error or warning code. Check your compilers documentation for information on interpreting the HRESULT value.

###### Function Information

Exposed By Interface: | "ISSCProtector"
Exposed In COM Server Binaries: | "SSCProt.dll" and "SSCProtD.dll"